package com.missilike.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author pengpengli
 * @since 2018-12-19
 */
public class MilFriendApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 请求用户Id
     */
    private String fromAccountId;

    /**
     * 被加好友Id
     */
    private String toAccountId;

    /**
     * 0-添加人未读,1-被添加人已读,
     */
    private Integer readStatus;

    private LocalDateTime createTime;

    /**
     * 0-发起,1-同意，2-拒绝
     */
    private Integer applyStatus;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFromAccountId() {
        return fromAccountId;
    }

    public void setFromAccountId(String fromAccountId) {
        this.fromAccountId = fromAccountId;
    }

    public String getToAccountId() {
        return toAccountId;
    }

    public void setToAccountId(String toAccountId) {
        this.toAccountId = toAccountId;
    }

    public Integer getReadStatus() {
        return readStatus;
    }

    public void setReadStatus(Integer readStatus) {
        this.readStatus = readStatus;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getApplyStatus() {
        return applyStatus;
    }

    public void setApplyStatus(Integer applyStatus) {
        this.applyStatus = applyStatus;
    }

    @Override
    public String toString() {
        return "MilFriendApply{" +
        "id=" + id +
        ", fromAccountId=" + fromAccountId +
        ", toAccountId=" + toAccountId +
        ", readStatus=" + readStatus +
        ", createTime=" + createTime +
        ", applyStatus=" + applyStatus +
        "}";
    }
}
